package com.joker.socketservice;

import com.joker.pojo.Group_Message;
import com.joker.pojo.User_Message;
import com.joker.utily.DButil;

import java.sql.SQLException;

public class WebsocketGroupMessage {
    //表名
    public String Tablename="group_message";
    public void addGroupMessage(Group_Message groupmessage) throws SQLException, ClassNotFoundException {

        //表内的键名
        Object[] tname=new Object[4];
        tname[0]="groupid";
        tname[1]="creatuserid";
        tname[2]="data";
        tname[3]="date";

        //value值
        Object[] tvalue=new Object[4];
        tvalue[0]=groupmessage.getGroupid();
        tvalue[1]=groupmessage.getCreateuserid();
        tvalue[2]=groupmessage.getData();
        tvalue[3]=groupmessage.getDate();

        DButil.add(Tablename,tname,tvalue);
    }


}
